package vamp_serviceweb

class Gpslocation {
    /**
     * Localisation GPS
     */

    float latitude;
    float longitude;
    float degree;
    float minute;
    float second;
    //Relation 0:1
    Address address

    static constraints = {
        latitude(nullable : false)
        longitude(nullable : false)
        degree(nullable : false)
        minute(nullable : false)
        second(nullable : false)
        address(nullable: true)
    }

    static belongsTo = [address:Address]

    static mapping = {
        id column: 'idgpslocation'
    }
}
